:root {
    --main-color: #ff85a2;
    --second-color: #f72585;
    --bg-color: #fff9fb;
    --text-color: #4a4a4a;
    --accent-color: #b5838d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 133, 162, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.logo h1 {
    font-size: 24px;
    color: #333;
}

.logo span {
    color: var(--main-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--main-color);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    padding: 0 10%;
    gap: 50px;
    background: radial-gradient(circle at top right, #fff0f3, #ffffff);
}

.hero-content h3 {
    font-size: 28px;
    color: var(--accent-color);
    font-weight: 600;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
}

.hero-content span {
    color: var(--main-color);
    text-shadow: 2px 2px 8px rgba(255, 133, 162, 0.2);
}

.hero-content p {
    font-size: 16px;
    margin-top: 15px;
    color: #666;
    line-height: 1.6;
}

.hero-img img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(255, 133, 162, 0.2);
    object-fit: cover;
}

.btn-hire,
.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--main-color);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    /* زوايا دائرية بالكامل */
    transition: 0.4s;
    margin-top: 25px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.3);
}

.btn-hire:hover,
.btn:hover {
    background-color: var(--second-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 133, 162, 0.5);
}

/* --- About & Skills --- */
/* --- About Section --- */
.about {
    padding: 100px 10%;
    background-color: #ffffff;
    /* Clean white background */
}

.heading {
    text-align: center;
    font-size: 45px;
    margin-bottom: 60px;
    color: #333;
    letter-spacing: 1px;
}

.heading span {
    color: var(--main-color);
    /* The Soft Pink we defined */
}

/* About Text Introduction */
.about-text p {
    font-size: 19px;
    color: #666;
    max-width: 900px;
    margin: 0 auto 70px;
    text-align: center;
    line-height: 1.8;
    font-weight: 300;
}

/* Sub-headings (Why Choose Me / Skills) */
.why-me h3,
.skills-section h3 {
    text-align: center;
    margin-bottom: 45px;
    font-size: 30px;
    color: #444;
    position: relative;
}

/* Optional: Small line under sub-headings */
.why-me h3::after,
.skills-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--main-color);
    margin: 10px auto 0;
    border-radius: 5px;
}

/* --- USP Grid (Cards) --- */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.usp-card {
    padding: 50px 30px;
    background: #fff9fb;
    /* Very light pink tint */
    border-radius: 30px;
    /* Softer rounded corners */
    text-align: center;
    border: 1px solid rgba(255, 133, 162, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.usp-card:hover {
    transform: translateY(-15px);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(255, 133, 162, 0.15);
    border-color: var(--main-color);
}

.usp-card i {
    font-size: 55px;
    color: var(--main-color);
    margin-bottom: 25px;
}

.usp-card h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.usp-card p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

/* --- Skills Grid --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-card {
    background: #ffffff;
    padding: 30px 15px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.08);
    border-color: var(--main-color);
    background: #fff9fb;
    box-shadow: 0 10px 25px rgba(255, 133, 162, 0.1);
}

.skill-card i {
    font-size: 45px;
    color: var(--main-color);
    margin-bottom: 12px;
    display: block;
}

.skill-card h4 {
    font-size: 17px;
    color: #444;
    font-weight: 500;
}

/* --- Responsive Fixes --- */
@media (max-width: 768px) {
    .about {
        padding: 70px 5%;
    }

    .heading {
        font-size: 35px;
    }

    .usp-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Projects --- */
.projects {
    padding: 80px 10%;
    background: #fff;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.5s;
}

.project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 133, 162, 0.2), var(--main-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: 0.5s;
    transform: translateY(100%);
    opacity: 0;
    padding: 0 20px;
}

.project-box:hover .project-layer {
    transform: translateY(0);
    opacity: 1;
}

.project-layer a {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--main-color);
}

/* --- Contact & Footer --- */
.contact {
    padding: 80px 10%;
    background: var(--bg-color);
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.contact form .input-box input {
    width: 49%;
}

.social-footer {
    border-top: 1px solid #eee;
    padding-top: 40px;
    text-align: center;
    margin-top: 40px;
}

.btn-social {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    font-size: 20px;
    transition: 0.3s;
}

.btn-social:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-5px);
}

.copyright {
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        height: auto;
        padding: 50px 5%;
    }

    .hero-img img {
        width: 250px;
        height: 250px;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .contact form .input-box input {
        width: 100%;
    }
}